﻿using Ndns.ServerHost.Abstractions.Services;
using System;

namespace Ndns.ServerHost.Stubs
{
    class StubLoggerProvider : ILoggerProvider
    {
        public ILogger GetLogger(string componentName)
        {
            return StubLogger.Instance;
        }
    }

    class StubLogger : ILogger
    {
        private static StubLogger s_instance = new StubLogger();
        public static StubLogger Instance => s_instance;

        public void Log(string traceIdentifier, LogLevel level, string message, Exception exception)
        {
            // nop
        }
    }
}
